package com.example.scanningutils;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.example.scanningshardutils.activity.ShardActivity;
import com.example.scanningshardutils.activity.WebViewActivity;
import com.example.scanningshardutils.utils.UtilsShardDialog;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        UtilsShardDialog.getInstance(this,getResources().getDrawable(R.mipmap.ic_launcher),"123123");
        findViewById(R.id.text).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ShardActivity.getInstance(MainActivity.this,getResources().getDrawable(R.mipmap.ic_launcher),"123123");
            }
        });
        findViewById(R.id.text1).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, WebViewActivity.class));
            }
        });
    }
}
